package com.example.demo.service;

import com.example.demo.redis.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HelloService {
    @Autowired
    private RedisService redisService;

    public String testRedis() {
        redisService.setValue("a", "aaaa");
        return (String)redisService.getValue("a");
    }
}
